/**
 * 判断相等
 * @param charA {string}
 * @param charB {string}
 */
export const IsEquals = function (charA: string, charB: string) {
	return charA === charB;
};

/**
 * 判断数组相等
 * @param listA {string}
 * @param listB {string}
 */
export const ArrayEquals = function (listA: any[], listB: any[]) {
	if (listA === listB) {
		return true;
	}
	if (listA.length !== listB.length) {
		return false;
	}
	for (const index in listA) {
		if (listA[index] !== listB[index]) {
			return false;
		}
	}
	return true;
};

/**
 * 判断为数值
 * @param charB {string}
 */
export const IsNumber = function (charB: string) {
	const code = charB.charCodeAt(0);
	return code >= 48 && code <= 57;
};

/**
 * 判断为空白字符
 * @param charB {string}
 */
export const IsBlank = function (charB: string) {
	const code = charB.charCodeAt(0);
	return (code >= 9 && code <= 13) || code === 32;
};
